<div class="isi">

        <div id="tabs">
            <ul>
                <li><a href="#tabs-1">Data Pengiriman Proses</a></li>
                <li><a href="#tabs-2">Data Pengiriman Sukses</a></li>
            </ul>
            <div id="tabs-1" style="padding: 10px 2px 2px 2px;">

                <table id="laporan" class="display"  >
                    <thead>
                        <tr>
                            <th width="5%">No</th>
                            <th width="20%">ID Transaksi</th>
                            <th width="20%">Nama Member</th>
                            <th width="20%">Jenis Pengiriman</th>
                            <th width="20%">Tujuan Pengiriman</th>
                            <th>Tanggal </th>
                            <th width="5%">Tindakan</th>
                        </tr>            
                    </thead>
                    <tbody>
                        <?php
                        $n = 1;
                        $img_lihat = $this->lib_button->lihat_icon();
                        foreach ($list_pemesanan as $list_pesan) {
                            if ($list_pesan->status == 2 && $list_pesan->status_pengiriman!=1) {
                                $link_lihat = anchor('admin_pengiriman_produk/view_det/' . $list_pesan->id, $img_lihat);
                                echo "<tr>";
                                echo "<td> $n</td>";
                                echo "<td> $list_pesan->id</td>";
                                echo "<td> $list_pesan->nama_depan $list_pesan->nama_belakang  </td>";
                                echo "<td> $list_pesan->nama_mitra</td>";
                                echo "<td> $list_pesan->nama_kota2</td>";
                                echo "<td> $list_pesan->date </td>";
                                echo "<td> $link_lihat</td>";
                                echo "</tr>";
                                $n++;
                            }
                        }
                        ?>
                    </tbody>
                </table>   

            </div>


            <div id="tabs-2" style="padding: 10px 2px 2px 2px;">
                <table id="laporan2" class="display"  >
                    <thead>
                        <tr>
                            <th width="5%">No</th>
                            <th width="20%">ID Transaksi</th>
                            <th width="20%">Nama Member</th>
                            <th width="20%">Jenis Pengiriman</th>
                            <th width="20%">Tujuan Pengiriman</th>
                            <th>No Pengiriman </th>
                            <th>Tanggal </th>
                            <th width="5%">Tindakan</th>
                        </tr>            
                    </thead>
                    <tbody>
                        <?php
                        $n = 1;
                        $img_lihat = $this->lib_button->lihat_icon();
                        foreach ($list_pemesanan as $list_pesan) {
                            if ($list_pesan->status == 2 && $list_pesan->status_pengiriman == 1 ) {
                                $link_lihat = anchor('admin_pengiriman_produk/view_det/' . $list_pesan->id, $img_lihat);
                                echo "<tr>";
                                echo "<td> $n</td>";
                                echo "<td> $list_pesan->id</td>";
                                echo "<td> $list_pesan->nama_depan $list_pesan->nama_belakang  </td>";
                                echo "<td> $list_pesan->nama_mitra</td>";
                                echo "<td> $list_pesan->nama_kota2</td>";
                                echo "<td>$list_pesan->nomer_pengiriman </td>";
                                echo "<td>$list_pesan->tgl_pengiriman </td>";
                                echo "<td> $link_lihat</td>";
                                echo "</tr>";
                                $n++;
                            }
                        }
                        ?>
                    </tbody>
                </table>                  
            </div>
        </div>        

    <div class="clear"></div>
</div>